package com.util;

import java.sql.Connection;

public class SingletonThreadLocal {


    ThreadLocal<Connection> threadLocal  = new ThreadLocal<>();

    private  static SingletonThreadLocal singletonThreadLocal = new SingletonThreadLocal();

    private  SingletonThreadLocal(){

    }


    public static SingletonThreadLocal getInstance(){
        return  singletonThreadLocal;
    }

    public ThreadLocal<Connection> getThreadLocal() {
        return threadLocal;
    }
}
